package com.tarena.csmall.front.web.mapper;

import cn.tedu.mall.pojo.front.entity.FrontCategoryEntity;
import java.util.List;
import org.apache.ibatis.annotations.Select;

public interface CategoryMapper {
    /**
     * 单表操作 sql select * from pms_category where parent_id=#{id}
     * ,enable as active,is_dispaly as display,is_parent as parent
     * @param id
     * @return
     */
    @Select("select * from pms_category where parent_id=#{id}")
    List<FrontCategoryEntity> selectCategoriesByParentId(Long id);
}
